package com.cc.micro.api.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author cc
 * @since 2023-07-01
 */
@Data
@ApiModel(value = "用户")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("用户ID，主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("注册手机号码")
    @TableField(value = "phone")
    private String phone;
    @ApiModelProperty("登录密码，密码长度最大16位")
    @TableField(value = "login_password")
    private String loginPassword;
    @ApiModelProperty("用户姓名")
    @TableField(value = "name")
    private String name;
    @ApiModelProperty("用户身份证号码")
    @TableField(value = "id_card")
    private String idCard;
    @ApiModelProperty("注册时间")
    @TableField(value = "add_time")
    private LocalDateTime addTime;
    @ApiModelProperty("最近登录时间")
    @TableField(value = "last_login_time")
    private LocalDateTime lastLoginTime;
    @ApiModelProperty("用户头像文件路径")
    @TableField(value = "header_image")
    private String headerImage;


}
